<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Authentication Defaults
    |--------------------------------------------------------------------------
    |
    | This option controls the default authentication "guard" and password
    | reset options for your application. You may change these defaults
    | as required, but they're a perfect start for most applications.
    |
    验证默认值
    |--------------------------------------------------------------------------
    |
    这个选项控制默认的身份验证“守卫”和密码
    应用程序的|重置选项。您可以更改这些默认值
    |，但对于大多数应用程序来说，它们是一个完美的开始。
    */

    'defaults' => [
        'guard' => 'web',
        'passwords' => 'users',
    ],

    /*
    |--------------------------------------------------------------------------
    | Authentication Guards
    |--------------------------------------------------------------------------
    |
    | Next, you may define every authentication guard for your application.
    | Of course, a great default configuration has been defined for you
    | here which uses session storage and the Eloquent user provider.
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | Supported: "session", "token"
    |
    |认证警卫
    |--------------------------------------------------------------------------
    |
    接下来，可以为应用程序定义每个身份验证保护。
    |当然，已经为您定义了一个很好的缺省配置
    这里的|使用会话存储和雄辩用户提供程序。
    |
    所有身份验证驱动程序都有一个用户提供程序。这定义了
    |用户实际上是从数据库或其他存储中检索出来的
    thi使用的|机制
    */

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],
        'teacher' => [
            'driver' => 'session',
            'provider' => 'teacher',
        ],
        'api' => [
            'driver' => 'token',
            'provider' => 'users',
            'hash' => false,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | User Providers
    |--------------------------------------------------------------------------
    |
    | All authentication drivers have a user provider. This defines how the
    | users are actually retrieved out of your database or other storage
    | mechanisms used by this application to persist your user's data.
    |
    | If you have multiple user tables or models you may configure multiple
    | sources which represent each model / table. These sources may then
    | be assigned to any extra authentication guards you have defined.
    |
    | Supported: "database", "eloquent"
    ||用户提供者
    |--------------------------------------------------------------------------
    |
    所有身份验证驱动程序都有一个用户提供程序。这定义了
    |用户实际上是从数据库或其他存储中检索出来的
    此应用程序用于持久化用户数据的|机制。
    |
    如果您有多个用户表或模型，您可以配置多个
    表示每个模型/表的|源。这些来源可能
    将|分配给您定义的任何额外身份验证保护。
    |
    |支持:“database”、“eloq”
    */

    'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => \App\Models\Admin::class,
        ],
        'teacher' => [
            'driver' => 'eloquent',
            'model' => \App\Models\Teacher::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Resetting Passwords
    |--------------------------------------------------------------------------
    |
    | You may specify multiple password reset configurations if you have more
    | than one user table or model in the application and you want to have
    | separate password reset settings based on the specific user types.
    |
    | The expire time is the number of minutes that the reset token should be
    | considered valid. This security feature keeps tokens short-lived so
    | they have less time to be guessed. You may change this as needed.
    |
    */

    'passwords' => [
        'users' => [
            'provider' => 'users',
            'table' => 'password_resets',
            'expire' => 60,
            'throttle' => 60,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Password Confirmation Timeout
    |--------------------------------------------------------------------------
    |
    | Here you may define the amount of seconds before a password confirmation
    | times out and the user is prompted to re-enter their password via the
    | confirmation screen. By default, the timeout lasts for three hours.
    |
    */

    'password_timeout' => 10800,

];
